package onlinebanking.server.objects;

import java.sql.ResultSet;

import onlinebanking.server.SimpleServer;
import onlinebanking.sql.SQLConnection;
import onlinebanking.sql.SQLTable;

/**
 * Basic structure of server objects
 * @author Del Mundo
 *
 */
public class ParentObject {
	/**
	 * Used to execute SQL commands to the database
	 */
	protected SQLTable sqltable;
	/**
	 * Results generated from the SQL commands
	 */
	protected ResultSet resultset;
	
	ParentObject(){
		//get connection from SimpleServer
		sqltable = new SQLTable(SQLConnection.getInstance().getConnection());
	}
	
	public void setSQLTable(SQLTable sqltable){
		this.sqltable = sqltable;
	}

}
